External Parameterization
Note: External parameterization should not be confused with the internal parameterization capabilities described here. Although they're related, their functionality is separate.
General Syntax
All items that are fed into the platform for parameterization need to follow the general syntax for an item's "unique name"
[dimension].[hierarchy].[member name]
- The dimension is usually the table name
- The hierarchy is usually the column name
- The member name is usually the item's caption or visible name.
Note: MDX syntax will usually provide the exact and compliant syntax for a member in a style similar to this formulation, but not necessarily identical.
Direct URL Loading
Click Copy Link from an item's app menu, or from its Actions Panel in the Content Explorer. The item's link will be copied to clipboard, and can then be shared with others and pasted in the browser, and filters can be added to the URL.
When parameterizing a URL for direct loading of content, the formulation is as follows:
&filter={unique member name}
The unique member name is NOT case sensitive.
Multiple filters (including multiple selections from the same hierarchy) can be chained into the URL using the "&" character, as follows:
{YourPyramidsite}/direct/?id={content identifier} &filter=[date].[year].[2009]&filter=[date].[year].[2008] &filter=[customer].[country].[australia]
Embedded Content
Embedded content can also be parameterized through JavaScript. The formulation is represented as follows:
type ExternalParameters = { reportFilters: { value: string }[ ] }
More specifically, the syntax is:
var myParams = { reportFilters: [ {value: "{member unique name 1}"} , {value: "[{member unique name x}"} ] }
Below is an example:
var params = { reportFilters: [{ value: "[Customer].[Country].[United States]" }, { value: "[Date].[year].[2010]" }] }
To see how this can be used in a full embedding example, click here.